<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GPT4Free - Free Access to AI Power</title>
    <link rel="apple-touch-icon" sizes="180x180" href="dist/img/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="dist/img/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="dist/img/favicon-16x16.png">
    <link rel="manifest" href="dist/img/site.webmanifest">
    <style>
        :root {
            --primary: #6e48aa;
            --secondary: #9d50bb;
            --accent: #4776E6;
            --dark: #1a1a2e;
            --light: #f8f9fa;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, var(--dark), #16213e);
            color: var(--light);
            min-height: 100vh;
        }
        
        .navbar {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .nav-links a:hover {
            color: var(--secondary);
        }
        
        .hero {
            padding: 8rem 2rem 4rem;
            text-align: center;
            background: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') no-repeat center center;
            background-size: cover;
            position: relative;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(26, 26, 46, 0.7);
            z-index: 0;
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }

        .hero iframe {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            border: none;
            top: 0;
        }
        
        h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
        }
        
        .subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .cta-button {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(110, 72, 170, 0.4);
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(110, 72, 170, 0.6);
        }
        
        .features {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 2rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--secondary);
        }
        
        .demo-section {
            padding: 4rem 2rem;
            background: rgba(26, 26, 46, 0.5);
            text-align: center;
        }
        
        .chat-container {
            max-width: 800px;
            margin: 2rem auto;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .chat-header {
            padding: 1rem;
            background: rgba(110, 72, 170, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .chat-messages {
            height: 400px;
            overflow-y: auto;
            padding: 1rem;
            text-align: left;
        }
        
        .message {
            margin-bottom: 1rem;
            padding: 2px 1rem;
            border-radius: 10px;
            max-width: 70%;
        }
        
        .user-message {
            background: rgba(110, 72, 170, 0.3);
            margin-left: auto;
            border-bottom-right-radius: 0;
        }
        
        .bot-message {
            background: rgba(255, 255, 255, 0.1);
            border-bottom-left-radius: 0;
        }
        
        .chat-input {
            display: flex;
            padding: 1rem;
            background: rgba(26, 26, 46, 0.7);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .chat-input input {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            outline: none;
        }
        
        .chat-input button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 1.5rem;
            margin-left: 1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .chat-input button:hover {
            background: var(--secondary);
        }
        
        footer {
            text-align: center;
            padding: 2rem;
            background: rgba(26, 26, 46, 0.8);
            margin-top: 2rem;
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .hero {
                padding: 6rem 1rem 3rem;
            }
        }
    </style>
    <script src="dist/js/framework.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/markdown-it@13.0.1/dist/markdown-it.min.js" async></script>
</head>
<body>
    <nav class="navbar">
        <div class="logo">G4F</div>
        <div class="nav-links">
            <a href="#features">Features</a>
            <a href="#demo">Try It</a>
            <a href="#about">About</a>
            <a href="https://github.com/xtekky/gpt4free" target="_blank">GitHub</a>
        </div>
    </nav>
    
    <section class="hero">
        <iframe src="background.html"></iframe>
        <form action="home.html" method="get">
        <div class="hero-content">
            <h1>Unleash AI Power For Free</h1>
            <p class="subtitle">GPT4Free provides free access to powerful AI models without compromising on quality or performance.</p>
            <button class="cta-button">Get Started Now</button>
        </div>
        </form>
    </section>
    
    <section class="features" id="features">
        <h2>Why Choose GPT4Free?</h2>
        <p>Experience cutting-edge AI technology without the price tag</p>
        
        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">🚀</div>
                <h3>Powerful Models</h3>
                <p>Access to GPT-4 level AI models completely free of charge with no hidden fees.</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">🔓</div>
                <h3>No Restrictions</h3>
                <p>No paywalls, no usage limits - just pure AI power at your fingertips.</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">⚡</div>
                <h3>Lightning Fast</h3>
                <p>Optimized for speed to deliver responses in seconds, not minutes.</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">🔌</div>
                <h3>API Access</h3>
                <p>Easy integration with your projects through our simple API endpoints.</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">🛡️</div>
                <h3>Privacy Focused</h3>
                <p>We don't store your conversations or sell your data - your privacy matters.</p>
            </div>
            
            <div class="feature-card">
                <div class="feature-icon">🌎</div>
                <h3>Open Source</h3>
                <p>Transparent, community-driven development you can trust and contribute to.</p>
            </div>
        </div>
    </section>
    
    <section class="demo-section" id="demo">
        <h2>Try It Out</h2>
        <p>Experience the power of GPT4Free right in your browser</p>
        
        <div class="chat-container">
            <div class="chat-header">
                GPT4Free Chat Demo
            </div>
            <div class="chat-messages">
                <div class="message bot-message">
                    <p>Hello! I'm your GPT4Free assistant. How can I help you today?</p>
                </div>
            </div>
            <div class="chat-input">
                <input type="text" placeholder="Ask me anything...">
                <button>▶</button>
            </div>
        </div>
    </section>
    <script>
        const demo = document.getElementById("demo");
        demo.querySelector("button").addEventListener("click", async ()=>{
            const prompt = demo.querySelector("input").value;
            demo.querySelector("input").value = "";
            if (prompt.trim() === "") {
                return;
            }
            const userMessage = document.createElement("div");
            userMessage.classList.add("message", "user-message");
            userMessage.innerHTML = framework.renderMarkdown(prompt);
            demo.querySelector(".chat-messages").appendChild(userMessage);
            const response = await framework.query(prompt);
            const botMessage = document.createElement("div");
            botMessage.classList.add("message", "bot-message");
            botMessage.innerHTML = framework.renderMarkdown(await response.text());
            demo.querySelector(".chat-messages").appendChild(botMessage);
        })
    </script>
    
    <section class="about" id="about">
        <div style="max-width: 800px; margin: 0 auto; padding: 2rem; text-align: center;">
            <h2>About GPT4Free</h2>
            <p>GPT4Free is an open-source project dedicated to providing free access to powerful AI models. Our mission is to democratize AI technology and make it accessible to everyone, regardless of their financial situation.</p>
            <p>The project is maintained by a community of passionate developers and AI enthusiasts who believe in free and open access to technology.</p>
            <p style="margin-top: 2rem;">
                <a href="https://github.com/xtekky/gpt4free" style="color: var(--secondary); text-decoration: none; font-weight: 600;" target="_blank">Contribute on GitHub →</a>
            </p>
        </div>
    </section>
    
    <footer>
        <p>© 2025 GPT4Free Project. All rights reserved.</p>
        <p>This is an open-source project not affiliated with OpenAI.</p>
    </footer>
</body>
</html>